package net.zdreamer.geracomium.ui.more;

import net.zdreamer.geracomium.ui.BaseActivity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;

import com.example.geracomium.R;

public class QueryIndentActivity extends BaseActivity implements
		OnClickListener {
	private LinearLayout foodindent, bedindent;
	private Intent intent;

	@Override
	protected int getContentView() {
		// TODO Auto-generated method stub
		return R.layout.activity_queryindent;
	}

	@Override
	protected void init() {
		foodindent = (LinearLayout) findViewById(R.id.foodindent);
		bedindent = (LinearLayout) findViewById(R.id.bedindent);
	}

	@Override
	protected void initViews() {
		initTitle("订单查询", R.drawable.selector_title_back, 0, true, false);
	}

	@Override
	protected void initListener() {
		findViewById(R.id.back).setOnClickListener(this);
		foodindent.setOnClickListener(this);
		bedindent.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.back:
			QueryIndentActivity.this.finish();
			break;
		case R.id.foodindent:

			intent = new Intent();
			intent.setClass(QueryIndentActivity.this, IndentListActiity.class);
			startActivity(intent);
			break;
		case R.id.bedindent:
			intent = new Intent(QueryIndentActivity.this,
					BedIndentActivity.class);
			startActivity(intent);
			break;
		default:
			break;
		}
	}

}
